#ifndef UI_TOOLS_H
#define UI_TOOLS_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDockWidget>
#include <QtGui/QWidget>
#include <QtGui/QGridLayout>
#include <QtGui/QLabel>
#include "colorview.h"

QT_BEGIN_NAMESPACE

class Ui_Tools
{
public:
    QGridLayout* layoutTools;
    QToolButton* buttonCrop;
    QAction *actionCrop;
    QToolButton* buttonPipette;
    QAction *actionPipette;
    QToolButton* buttonMove;
    QAction *actionMove;
    QToolButton* buttonMoveSelection;
    QAction *actionMoveSelection;
    QToolButton* buttonSelectionRect;
    QAction *actionSelectedRect;
    QToolButton* buttonCleverSelection;
    QAction *actionCleverSelected;
    QToolButton *buttonPencil;
    QAction     *actionPencil;

    void setupUi(QWidget *ToolsClass)
    {
        if(ToolsClass->objectName().isEmpty())
            ToolsClass->setObjectName(QString::fromUtf8("ToolsClass"));

        layoutTools = new QGridLayout();
        layoutTools->cellRect(2, 3);
        layoutTools->setObjectName(QString::fromUtf8("layoutTools"));


        // the tool crop
        buttonCrop = new QToolButton();
        buttonCrop->setText(QString("Tronquer"));
        buttonCrop->setObjectName(QString::fromUtf8("buttonCrop"));

        actionCrop = new QAction(QIcon("./image/tronquer.png"), QString::fromUtf8("Tronquer"), buttonCrop);
        actionCrop->setObjectName(QString::fromUtf8("Tronquer"));
        buttonCrop->setDefaultAction(actionCrop);


        // the tool to take the color of an area
        buttonPipette = new QToolButton();
        buttonPipette->setText(QString("Pipette"));


        actionPipette = new QAction(QIcon("./image/pipette.png"), QString::fromUtf8("Pipette"), buttonPipette);
        actionPipette->setObjectName(QString::fromUtf8("Pipette"));

        buttonPipette->setDefaultAction(actionPipette);

        // the tool to move a layer
        buttonMove = new QToolButton();
        buttonMove->setText(QString::fromUtf8("Déplacer un calque"));
        buttonMove->setObjectName(QString::fromUtf8("buttonMove"));
        actionMove = new QAction(QIcon("./image/mover.png"), QString::fromUtf8("Déplacer un calque"), buttonMove);
        actionMove->setObjectName(QString::fromUtf8("deplacement"));
        buttonMove->setDefaultAction(actionMove);

        // the tool to move a selection
        buttonMoveSelection = new QToolButton();
        buttonMoveSelection->setText(QString::fromUtf8("Déplacer une sélection"));
        buttonMoveSelection->setObjectName(QString::fromUtf8("buttonMoveSelection"));
        actionMoveSelection = new QAction(QIcon("./image/moverSelection.png"), QString::fromUtf8("Déplacer une sélection"), buttonMoveSelection);
        actionMoveSelection->setObjectName(QString::fromUtf8("deplacementSélection"));
        buttonMoveSelection->setDefaultAction(actionMoveSelection);

        // the tool selected intelligently
        QToolButton* buttonCleverSelection = new QToolButton();
        buttonCleverSelection->setText(QString("Sélection intelligente"));
        buttonCleverSelection->setObjectName(QString::fromUtf8("buttonCleverSelection"));
        actionCleverSelected = new QAction(QIcon("./image/selectIntelligent.png"),
                                           QString::fromUtf8("Sélection Intelligente"),buttonCleverSelection);
        actionCleverSelected->setObjectName(QString::fromUtf8("selectionIntelligente"));
        buttonCleverSelection->setDefaultAction(actionCleverSelected);

        // the tool selected rectangulary
        QToolButton* buttonSelectionRect = new QToolButton();
        buttonSelectionRect->setText(QString("Sélection rectangulaire"));
        buttonSelectionRect->setObjectName(QString::fromUtf8("buttonSelection"));
        actionSelectedRect = new QAction(QIcon("./image/selectRect.png"),
                                         QString::fromUtf8("Sélection rectangulaire"),buttonSelectionRect);
        actionSelectedRect->setObjectName(QString::fromUtf8("selectionrectangulaire"));
        buttonSelectionRect->setDefaultAction(actionSelectedRect);

        // the tool Pen
        buttonPencil = new QToolButton();
        buttonPencil->setText(QString("Pinceau"));
        actionPencil = new QAction(QIcon("./image/pinceau.png"), QString::fromUtf8("Pinceau"), buttonPencil);
        actionPencil->setObjectName(QString::fromUtf8("Pencil"));
        buttonPencil->setDefaultAction(actionPencil);

        // disposition of the button and color chooser into the layout
        layoutTools->addWidget(buttonCrop, 0, 0, 1, 1, Qt::AlignTop);
        layoutTools->addWidget(buttonPipette, 0, 1, 1, 1, Qt::AlignTop);
        layoutTools->addWidget(buttonMove, 0, 2, 1, 1, Qt::AlignTop);
        layoutTools->addWidget(buttonPencil, 1,0, 1, 1, Qt::AlignTop);
        layoutTools->addWidget(buttonMoveSelection, 1, 1, 1, 1, Qt::AlignTop);
        layoutTools->addWidget(buttonSelectionRect, 1, 2, 1, 1, Qt::AlignTop);

        ToolsClass->setLayout(layoutTools);

        QMetaObject::connectSlotsByName(ToolsClass);

    } // setupUi
};

namespace UiTools {
    class ToolsClass: public Ui_Tools {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_TOOLS_H
